<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Text3D.pb</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<pre><font face="Courier New, Courier, mono"size="2"><font color="#006666">;
</font><font color="#006666">; ------------------------------------------------------------
</font><font color="#006666">;
</font><font color="#006666">;   PureBasic - Text3D
</font><font color="#006666">;
</font><font color="#006666">;    (c) Fantaisie Software
</font><font color="#006666">;
</font><font color="#006666">; ------------------------------------------------------------
</font><font color="#006666">;
</font>
<b><font color="#006666">IncludeFile</font></b> <font color="#924B72">#PB_Compiler_Home</font> + "examples/3d/Screen3DRequester.pb"


<b><font color="#006666">If</font></b> <font color="#006666">InitEngine3D</font>()
  
<font color="#006666">  Add3DArchive</font>(<font color="#924B72">#PB_Compiler_Home</font> + "examples/3d/Data/Textures", <font color="#924B72">#PB_3DArchive_FileSystem</font>)
<font color="#006666">  Add3DArchive</font>(<font color="#924B72">#PB_Compiler_Home</font> + "examples/3d/Data/fonts", <font color="#924B72">#PB_3DArchive_FileSystem</font>)
<font color="#006666">  Parse3DScripts</font>()
  
<font color="#006666">  InitSprite</font>()
<font color="#006666">  InitKeyboard</font>()
<font color="#006666">  InitMouse</font>()
  
  <b><font color="#006666">If</font></b> <font color="#006666">Screen3DRequester</font>()
    
<font color="#006666">    CreateCube</font>(0, 2)
    
<font color="#006666">    CreateMaterial</font>(0,<font color="#006666"> LoadTexture</font>(0, "Caisse.png"))
    
<font color="#006666">    CreateEntity</font>(0,<font color="#006666"> MeshID</font>(0),<font color="#006666"> MaterialID</font>(0))
    
<font color="#006666">    CreateText3D</font>(0, "Hello world")
<font color="#006666">    Text3DColor</font>(0,<font color="#006666"> RGBA</font>(255, 0, 0, 255))
<font color="#006666">    Text3DAlignment</font>(0, <font color="#924B72">#PB_Text3D_HorizontallyCentered</font>)
<font color="#006666">    AttachEntityObject</font>(0, "",<font color="#006666"> Text3DID</font>(0))
<font color="#006666">    MoveText3D</font>(0, 0, 2, 2)

<font color="#006666">    RotateEntity</font>(0, 0, -70, 0)
    
<font color="#006666">    CreateCamera</font>(0, 0, 0, 100, 100)
<font color="#006666">    MoveCamera</font>(0, 0, 0, 10, <font color="#924B72">#PB_Absolute</font>)
    
    <b><font color="#006666">Repeat</font></b>
<font color="#006666">      Screen3DEvents</font>()
      
<font color="#006666">      ExamineKeyboard</font>()
      
<font color="#006666">      RotateEntity</font>(0, 1, 1, 1, <font color="#924B72">#PB_Relative</font>)
      
<font color="#006666">      RenderWorld</font>()
<font color="#006666">      Screen3DStats</font>()
<font color="#006666">      FlipBuffers</font>()
    <b><font color="#006666">Until</font></b> <font color="#006666">KeyboardPushed</font>(<font color="#924B72">#PB_Key_Escape</font>) <b><font color="#006666">Or</font></b> Quit = 1
  <b><font color="#006666">EndIf</font></b>
  
<b><font color="#006666">Else</font></b>
<font color="#006666">  MessageRequester</font>("Error", "The 3D Engine can't be initialized",0)
<b><font color="#006666">EndIf</font></b>

<b><font color="#006666">End</font></b>
</font></pre>
</body></html>
